package tbdp.tool.config;

import java.util.ArrayList;
import java.util.List;

import tbdp.tool.common.ToString;

/**
 * 任务配置文件
 *
 * @author xbkaishui
 * @version $Id: JobConfig.java, v 0.1 2017-06-17 下午3:05 xbkaishui Exp $$
 */
public class JobConfig extends ToString {

    private String name;

    private List<ProcessorConfig> preProcessors = new ArrayList<>();

    private List<ProcessorConfig> postProcessors = new ArrayList<>();
    ;

    private ReaderConfig reader;

    private WriterConfig writer;


    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ProcessorConfig> getPreProcessors() {
        return preProcessors;
    }

    public void setPreProcessors(List<ProcessorConfig> preProcessors) {
        this.preProcessors = preProcessors;
    }

    public List<ProcessorConfig> getPostProcessors() {
        return postProcessors;
    }

    public void setPostProcessors(List<ProcessorConfig> postProcessors) {
        this.postProcessors = postProcessors;
    }

    public ReaderConfig getReader() {
        return reader;
    }

    public void setReader(ReaderConfig reader) {
        this.reader = reader;
    }

    public WriterConfig getWriter() {
        return writer;
    }

    public void setWriter(WriterConfig writer) {
        this.writer = writer;
    }
}
